package com.empire.module.member.dal.dataobject.relation;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("member_relationship")
public class RelationshipDo {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("source_id")
    private Long sourceId;

    @TableField("target_id")
    private Long targetId;

    @TableField("`value`")
    private Integer value;

    /**
     * 人员ID，对应member_user表的ID
     */
    @TableField("`person_id`")
    private Long personId;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;
}
